#ifndef OPGETSOURCE
#define OPGETSOURCE

#include "VMPFocus.hpp"
#include "operations.hpp"
//Operation Text:
//Formula:
//"([^\"]|\")*"

//helper:

cText TEXT_GETSOURCE="gs";

//PreLining:

//PostLining:

//MkTree:
//====Should add Transchar function.

//Evaluate:
sRecord funOpGsEva(ptrRETNode retnode, ptrParsedElement pe, void* scope){
	ptrDough Dough=eval(retnode,pe->SubElements[0],0).dough;

	return CreateTextDough(getText(Dough)); //test.
}


ptrOperation loadOpGS(){
	ptrOperation tmp=new cOperation();
	tmp->Formula="\\$:blank:?:element::blank:?\\$";
	tmp->Name="$";
	tmp->onEvaluate=funOpGsEva;
	tmp->onPreLining=funOpRetPreL; //"::"s are the same to Return operation. so just use it.
	//tmp->onPostLining=funOpTextPostL;
	//tmp->onMakingTree=funOpTextMkTree;
	return tmp;
}

#endif